/* 房源管理共享样式 */
.house-management-container {
  display: flex;
  height: 100vh;
  background: #f5f5f5;
}

.person-container {
  display: flex;
  width: 100%;
  max-width: 100%;
}

.house-management-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
}

.house-search {
  margin-bottom: 16px;
}

.search-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rent-range-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-label {
  font-size: 14px;
  color: #606266;
  white-space: nowrap;
}

.range-separator {
  color: #909399;
  margin: 0 4px;
}

.table-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* 房源卡片样式 */
.house-cards-container {
  min-height: 400px;
}

.house-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.house-card {
  display: flex;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e4e7ed;
  height: 200px;
}

.house-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.house-image {
  position: relative;
  width: 320px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.house-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 0 0 12px;
  display: block;
  vertical-align: top;
  margin: 0;
  padding: 0;
}

.house-status {
  position: absolute;
  top: 12px;
  left: 12px;
}

.status-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

.status-pending {
  background: #909399;
}

.status-reviewing {
  background: #e6a23c;
}

.status-online {
  background: #67c23a;
}

.status-rented {
  background: #409eff;
}

.status-offline {
  background: #f56c6c;
}

.status-failed {
  background: #f56c6c;
}

.rental-type-tag {
  position: absolute;
  top: 12px;
  right: 12px;
}

.rental-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
}

.rental-tag.whole-rent {
  background: #409eff;
}

.rental-tag.shared-rent {
  background: #e6a23c;
}

.house-info {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.management-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #303133;
}

.house-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.house-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  line-height: 1.4;
  flex: 1;
  margin-right: 12px;
}

.house-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.house-price {
  text-align: right;
}

.price-amount {
  font-size: 20px;
  font-weight: 700;
  color: #f56c6c;
}

.price-unit {
  font-size: 12px;
  color: #909399;
  margin-left: 4px;
}

.house-details {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 8px;
}

.detail-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
}

.detail-label {
  color: #909399;
  margin-right: 4px;
  white-space: nowrap;
  font-size: 12px;
}

.detail-value {
  color: #606266;
  font-weight: 500;
  font-size: 12px;
}

.house-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.loading-state {
  padding: 40px;
}

.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 房源详情侧滑面板样式 */
.house-detail-content {
  padding: 20px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  border-bottom: 1px solid #e4e7ed;
  padding-bottom: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.detail-section .detail-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.detail-section .detail-label {
  color: #909399;
  margin-right: 8px;
  white-space: nowrap;
  min-width: 80px;
}

.detail-section .detail-value {
  color: #606266;
  font-weight: 500;
}

.description-text {
  color: #606266;
  line-height: 1.6;
  margin: 0;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.detail-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e4e7ed;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-row > * {
    margin-right: 0 !important;
    margin-bottom: 8px;
  }
  
  .rent-range-container {
    margin-right: 0;
  }
  
  .house-card {
    flex-direction: column;
    height: auto;
  }
  
  .house-image {
    width: 100%;
    height: 200px;
  }
  
  .house-details {
    grid-template-columns: 1fr;
  }
  
  .house-actions {
    flex-wrap: wrap;
  }
  
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .detail-image {
    height: 100px;
  }
}
